import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.repast.utils.JedisClient;
import com.repast.utils.JedisClientPool;

/**
 * Created by EastCool·Lee on 2017/6/21.
 */
@Service
public class test {

	@Autowired
	private JedisClientPool pool;

	@Test
	public void Demo() {
		List list = new ArrayList();
		String day = "3,4,5,6,7";
		String[] days = day.split(",");
		String str[] = { "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日" };// 字符串数组
		for (String string : days) {
			list.add(str[(Integer.parseInt(string)-1)]);
		}
		System.out.println(list);

	}
}
